/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package teste;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import testejunit.JUnit;


/**
 *
 * @author Charles Gesser
 */
public class JUnitTeste extends TestCase{
    public void dobro(){
        assertEquals("Dobro1", 20.0,JUnit.dobro(10.0));    
    }
    public void dobro2(){
        assertEquals("Dobro2", 30.0,JUnit.dobro(15.0));
    }
    public void mais(){
        assertEquals("Mais1", 30, JUnit.prox(29));
    }
    public void soma(){
        assertEquals("soma", 30 , JUnit.soma(15,15));
    }
    
    public JUnitTeste (String nome){
        super (nome);
    }
    
    public static Test suite(){
        TestSuite suite = new TestSuite();
        suite.addTest(new JUnitTeste("dobro"));
        suite.addTest(new JUnitTeste("dobro2"));
        suite.addTest(new JUnitTeste("mais"));
        suite.addTest(new JUnitTeste("soma"));
        suite.addTest(new JUnitTeste("array"));
        return suite;
    }
    
    
}
